package com.sinven.serviceImpl;


        import com.sinven.dao.OrderDao;
        import com.sinven.service.OrderService;
        import com.sinven.entity.Order;
        import com.sinven.service.OrderService;
        import org.hibernate.SessionFactory;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.beans.factory.annotation.Qualifier;
        import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
        import org.springframework.stereotype.Repository;
        import org.springframework.stereotype.Service;

        import javax.transaction.Transactional;
        import java.util.List;


/**
 * 李志伟
 */
@Service
@Transactional
public class OrderServiceImpl  implements OrderService {


    @Autowired
    private OrderDao orderDao;

    @Override
    public void addOrder(List<Order> order) {
        String hql="";
        for(Order order1:order){
            orderDao.savaOrder(order1,hql);

        }
    }

    @Override
    public void updataOrder(List<Order> order) {

    }

    @Override
    public void delectOrder(int id) {

    }

    @Override
    public List<Order> findOrder(int id) {
        return null;
    }



    @Override
    public Integer savaOrder(Order order) {
        return null;
    }
}

